package com.lxm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lxm.dto.Result;
import com.lxm.entity.Likes;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 * 点赞表 服务类
 * </p>
 *
 * @author ${author}
 * @since 2024-10-02
 */
public interface LikesService extends IService<Likes> {

    Boolean checkLike(Long likedId, Integer type);

    @Transactional
    Result like(Long likedId, Integer type);

    @Transactional
    Result cancelLike(Long likeId, Integer type);
}
